vmx: let opt_ept_ad always reflect the current setting
authorJuergen Gross <jgross@suse.com>
Mon, 25 May 2020 06:21:55 +0000 (08:21 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 25 May 2020 06:21:55 +0000 (08:21 +0200)
commitb4d01ede23847bed9471ca0b7071394aef693a1a
tree059a93bb2acc4894383ea28d5821cad1b8f9deb4
parent437b0aa06a014ce174e24c0d3530b3e9ab19b18b
vmx: let opt_ept_ad always reflect the current setting

In case opt_ept_ad has not been set explicitly by the user via command
line or runtime parameter, it is treated as "no" on Avoton cpus.

Change that handling by setting opt_ept_ad to 0 for this cpu type
explicitly if no user value has been set.

By putting this into the (renamed) boot time initialization of vmcs.c
_vmx_cpu_up() can be made static.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vmcs.c
xen/arch/x86/hvm/vmx/vmx.c
xen/include/asm-x86/hvm/vmx/vmcs.h